//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.baidu.trace;

import org.json.JSONObject;

public final class g implements com.baidu.trace.c.g {
    protected static String a = null;
    protected static long b = 0L;
    protected static String c = null;
    protected static String d = null;

    public g() {
    }

    public final void a() {
    }

    public final void a(JSONObject var1) {
        try {
            if(var1.has("access_key") && var1.has("expire_time") && var1.has("secret_key") && var1.has("token")) {
                a = var1.getString("access_key");
                b = var1.getLong("expire_time");
                c = var1.getString("secret_key");
                d = var1.getString("token");
                h.a();
                bc.a().a(0);
            } else {
                b();
                bc.a().a(1);
            }
        } catch (Exception var2) {
            b();
            bc.a().a(1);
        }
    }

    protected static void b() {
        a = null;
        c = null;
        d = null;
    }
}
